<template>
<div class="flex w-full">
 <a-button type="default" shape="circle" size="large" @click="backparent">
    <ArrowLeftOutlined />
      </a-button>
      <div style="" class="flex flex-col w-full">
   
    <div>
    <span class="text-lg font-bold ml-4">{{detailXinwen.title}}</span>
    </div>
    <span class="text-gray-500 ml-4">{{detailXinwen.createDate}}</span>
    
    <!-- <div v-html="detailXinwen.wzcontent" class="mt-4 ml-4">
    </div> -->
    <MarkdownViewer :value="detailXinwen.wzcontent"/>
     <div v-if="detailXinwen.h5url!=null" class=" ml-4 w-full">
    <!-- 使用iframe加载第三方网页 -->
    <iframe
      
      :src="detailXinwen.h5url"
      width="100%"
      height="1200"
      frameborder="0"
      allowfullscreen
    ></iframe>
    </div>
</div>
</div>

</template>
<script lang="ts">
import { reactive,defineComponent,ref } from 'vue';
import { MarkdownViewer } from '/@/components/Markdown';
import { ArrowLeftOutlined } from '@ant-design/icons-vue';
import { useMessage } from '/@/hooks/web/useMessage';



export default defineComponent({
  name:'newsfrontdetail',
  
});
</script>

<script lang="ts" setup>

const props = defineProps({
  
    detailXinwen:Object

});

const $emit = defineEmits(['closeDetail'])

 const backparent = () => {
    $emit('closeDetail');
   
  }
</script>
<style scoped>
.demo-loadmore-list {
  min-height: 350px;
}


</style>